<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Invite extends Model
{
    protected $guarded = ['id'];
    protected $appends = ['status_txt'];

    public function getStatusTxtAttribute()
    {
        $arr['-1']   = '邀约被拒绝';
        $arr['1']    = '邀约进行中';
        $arr['100']  = '邀约成功';
        $arr['-100'] = '超时未回应';
        return $arr[$this->status];
    }
}
